@echo off
:: 1. 先杀干净旧进程
for /f "tokens=5" %%p in ('netstat -ano ^| findstr :9001') do (
    taskkill /PID %%p /F 2>nul
)
:: 2. 启动新服务
uvicorn app.main:app --reload --port 9001